import 'package:flutter/material.dart';
import 'package:photo_frame/pages/me/widget/me_item_cell.dart';
import 'package:photo_frame/utils/localization_util.dart';
import 'package:photo_frame/widgets/app_bar_widget.dart';

class HelpMePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: commonAppBar(appLocalForContext(context).helpTitle),
      body: Container(
        height: double.infinity,
        color: Color(0xffF2F2F2),
        padding: EdgeInsets.only(left: 16, right: 16),
        child: Column(
          children: [
            MeItemCell(
              title: appLocalForContext(context).feedbackTitle,
              tailing: MeItemArrow(),
              routerPath: "/feedback",
            ),
            MeItemCell(
                title: appLocalForContext(context).tipsContentPrivacyAgreement,
                tailing: MeItemArrow(),
                routerPath: "/web",
                args: {
                  "title":
                      appLocalForContext(context).tipsContentPrivacyAgreement,
                  "url": "https://www.ifotocube.com/protocol_en.html"
                }),
          ],
        ),
      ),
    );
  }
}
